#!/bin/bash

rm ./data/*

for s in 100 250 500 750 1000 1500 2000
do
	for t in 1 2 4 8 16
	do
		./bin/nbody -b $s -i 1000 -t $t  | tee -a ./data/res_$s.log
	done
done

gnuplot plot.gnuplot

